package o;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import androidx.annotation.ColorRes;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.BaseTitleBean;
import o.dky.d;

public abstract class cjf {
    protected LayoutInflater ˊ;
    public Activity ˋ;
    public BaseTitleBean ˎ;
    private View ˏ;
    public djb ॱ;

    public enum a {
        TAB_SELECTED,
        TAB_UNSELECTED
    }

    protected abstract void ʻ();

    protected abstract View ʽ();

    public abstract String ᐝ();

    private cjf() {
    }

    public cjf(Activity activity, BaseTitleBean baseTitleBean) {
        ॱ(activity, baseTitleBean);
    }

    private void ॱ(Activity activity, BaseTitleBean baseTitleBean) {
        this.ˋ = activity;
        this.ˎ = baseTitleBean;
        this.ˊ = LayoutInflater.from(activity);
        this.ˏ = ʽ();
    }

    public void ॱ(BaseTitleBean baseTitleBean) {
        this.ˎ = baseTitleBean;
        ʻ();
    }

    public BaseTitleBean ˎ() {
        return this.ˎ;
    }

    public View ˋ() {
        return this.ˏ;
    }

    public void ॱ(djb o_djb) {
        this.ॱ = o_djb;
    }

    public boolean ˏ() {
        return this.ˏ != null;
    }

    protected void ˋ(@ColorRes int i, @ColorRes int i2) {
        if (evf.ˋ(this.ˋ)) {
            Object ˏ = fmw.ˏ(this.ˋ, d.ʼॱ, "color");
            Object ˏ2 = fmw.ˏ(this.ˋ, d.ˈ, "color");
            if ((ˏ instanceof Integer) && (ˏ2 instanceof Integer)) {
                evd.ˊ(this.ˋ, ((Integer) ˏ).intValue(), ((Integer) ˏ2).intValue());
                if (erq.ˏ(((Integer) ˏ).intValue())) {
                    evd.ˊ(this.ˋ.getWindow(), 1);
                    return;
                } else {
                    evd.ˊ(this.ˋ.getWindow(), 0);
                    return;
                }
            }
            return;
        }
        cgv.ˋ(this.ˋ, i, i2);
    }

    public void ॱ() {
    }

    public void ˊ() {
    }

    public void ॱॱ() {
    }

    public void ˊ(a aVar) {
    }
}
